#ifndef MOD_HTTPSERVER
#define MOD_HTTPSERVER

#include "STM32_Uart.h"
#include "Drv_W5500.h"
#include <cstdint>


#define BUF_SIZE 512
#define DATA_BUF_SIZE 2048 // 根据需求设置合适的缓冲区大小


#ifdef __cplusplus

class cHttpServer
{
public:
    cHttpServer();
    ~cHttpServer(){}

    void Init(void);
    void Process(void);
    void HTTPServer(void);


private:
    uint8_t TX_BUF[DATA_BUF_SIZE];
    uint8_t RX_BUF[DATA_BUF_SIZE];
    //定义socket端口7~8,为http server使用
    uint8_t socknumlist[2] = {6, 7};

    
		
		
};


extern cHttpServer HttpServer;

//void UartRxCplCallback(struct _Uart_TypeDef *pst_UartStruct, uint16_t uin_Size);
void httpServer_run();

#endif

#endif